cmake_minimum_required(VERSION 3.16)
project(example LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
set(WEBVIEW_BUILD_DOCS true)


set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")

include(FetchContent)

FetchContent_Declare(
    webview
    GIT_REPOSITORY https://github.com/webview/webview
    GIT_TAG 0.12.0)
FetchContent_MakeAvailable(webview)

add_executable(example)
target_sources(example PRIVATE main.cpp)
target_link_libraries(example PRIVATE webview::core)
